package com.micro.shop.model;

import java.io.Serializable;

public class ProductToProperty implements Serializable {
    /**
     * 
     * 表 : bestfenxiao_product_to_property
     * 对应字段 : bestfenxiao_id
     */
    private Integer bestfenxiaoId;

    /**
     * 店铺id
     * 表 : bestfenxiao_product_to_property
     * 对应字段 : store_id
     */
    private Integer storeId;

    /**
     * 商品id
     * 表 : bestfenxiao_product_to_property
     * 对应字段 : product_id
     */
    private Integer productId;

    /**
     * 商品属性id
     * 表 : bestfenxiao_product_to_property
     * 对应字段 : pid
     */
    private Integer pid;

    /**
     * 排序
     * 表 : bestfenxiao_product_to_property
     * 对应字段 : order_by
     */
    private Integer orderBy;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table bestfenxiao_product_to_property
     *
     * @mbggenerated Fri Apr 20 02:14:08 CST 2018
     */
    private static final long serialVersionUID = 1L;

    /**
     * get method 
     *
     * @return bestfenxiao_product_to_property.bestfenxiao_id：
     */
    public Integer getBestfenxiaoId() {
        return bestfenxiaoId;
    }

    /**
     * set method 
     *
     * @param bestfenxiaoId  
     */
    public void setBestfenxiaoId(Integer bestfenxiaoId) {
        this.bestfenxiaoId = bestfenxiaoId;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_product_to_property.store_id：店铺id
     */
    public Integer getStoreId() {
        return storeId;
    }

    /**
     * set method 
     *
     * @param storeId  店铺id
     */
    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_product_to_property.product_id：商品id
     */
    public Integer getProductId() {
        return productId;
    }

    /**
     * set method 
     *
     * @param productId  商品id
     */
    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_product_to_property.pid：商品属性id
     */
    public Integer getPid() {
        return pid;
    }

    /**
     * set method 
     *
     * @param pid  商品属性id
     */
    public void setPid(Integer pid) {
        this.pid = pid;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_product_to_property.order_by：排序
     */
    public Integer getOrderBy() {
        return orderBy;
    }

    /**
     * set method 
     *
     * @param orderBy  排序
     */
    public void setOrderBy(Integer orderBy) {
        this.orderBy = orderBy;
    }

    /**
     *
     * @param that
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProductToProperty other = (ProductToProperty) that;
        return (this.getBestfenxiaoId() == null ? other.getBestfenxiaoId() == null : this.getBestfenxiaoId().equals(other.getBestfenxiaoId()))
            && (this.getStoreId() == null ? other.getStoreId() == null : this.getStoreId().equals(other.getStoreId()))
            && (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getOrderBy() == null ? other.getOrderBy() == null : this.getOrderBy().equals(other.getOrderBy()));
    }

    /**
     *
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBestfenxiaoId() == null) ? 0 : getBestfenxiaoId().hashCode());
        result = prime * result + ((getStoreId() == null) ? 0 : getStoreId().hashCode());
        result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getOrderBy() == null) ? 0 : getOrderBy().hashCode());
        return result;
    }
}